package com.shycloud.mido.task.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 用户表
 */
@Data
@TableName(value = "sys_user")
public class SysUser {
	/**
	 * 主键ID
	 */
	@TableId(value = "user_id", type = IdType.AUTO)
	private Integer userId;

	/**
	 * 用户名
	 */
	@TableField(value = "username")
	private String username;

	@TableField(value = "password")
	private String password;

	/**
	 * 随机盐
	 */
	@TableField(value = "salt")
	private String salt;

	/**
	 * 简介
	 */
	@TableField(value = "phone")
	private String phone;

	/**
	 * 头像
	 */
	@TableField(value = "avatar")
	private String avatar;

	/**
	 * 部门ID
	 */
	@TableField(value = "dept_id")
	private Integer deptId;

	/**
	 * 用户分类（1=运营人员，2=讲师，3=服务商）师资培训讲师以及运营后台服务商需要用到该字段
	 */
	@TableField(value = "user_cate")
	private String userCate;

	/**
	 * 创建时间
	 */
	@TableField(value = "create_time")
	private Date createTime;

	/**
	 * 修改时间
	 */
	@TableField(value = "update_time")
	private Date updateTime;

	/**
	 * 0-正常，9-锁定
	 */
	@TableField(value = "lock_flag")
	private String lockFlag;

	/**
	 * 0-正常，1-删除
	 */
	@TableField(value = "del_flag")
	private String delFlag;

	/**
	 * 微信openid
	 */
	@TableField(value = "wx_openid")
	private String wxOpenid;

	/**
	 * QQ openid
	 */
	@TableField(value = "qq_openid")
	private String qqOpenid;

	/**
	 * 所属租户
	 */
	@TableField(value = "tenant_id")
	private Integer tenantId;

	public static final String COL_USER_ID = "user_id";

	public static final String COL_USERNAME = "username";

	public static final String COL_PASSWORD = "password";

	public static final String COL_SALT = "salt";

	public static final String COL_PHONE = "phone";

	public static final String COL_AVATAR = "avatar";

	public static final String COL_DEPT_ID = "dept_id";

	public static final String COL_USER_CATE = "user_cate";

	public static final String COL_CREATE_TIME = "create_time";

	public static final String COL_UPDATE_TIME = "update_time";

	public static final String COL_LOCK_FLAG = "lock_flag";

	public static final String COL_DEL_FLAG = "del_flag";

	public static final String COL_WX_OPENID = "wx_openid";

	public static final String COL_QQ_OPENID = "qq_openid";

	public static final String COL_TENANT_ID = "tenant_id";
}